<%@ page import="com.dbb.Shipment" %>



<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'agent', 'error')} ">
	<label for="agent">
		<g:message code="shipment.agent.label" default="Agent" />
		
	</label>
	<g:textField name="agent" value="${shipmentInstance?.agent}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'boatName', 'error')} ">
	<label for="boatName">
		<g:message code="shipment.boatName.label" default="Boat Name" />
		
	</label>
	<g:textField name="boatName" value="${shipmentInstance?.boatName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'code', 'error')} ">
	<label for="code">
		<g:message code="shipment.code.label" default="Code" />
		
	</label>
	<g:textField name="code" value="${shipmentInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'containerNo', 'error')} ">
	<label for="containerNo">
		<g:message code="shipment.containerNo.label" default="Container No" />
		
	</label>
	<g:textField name="containerNo" value="${shipmentInstance?.containerNo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'eTD', 'error')} required">
	<label for="eTD">
		<g:message code="shipment.eTD.label" default="ETD" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="eTD" precision="day"  value="${shipmentInstance?.eTD}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'groupInfos', 'error')} ">
	<label for="groupInfos">
		<g:message code="shipment.groupInfos.label" default="Group Infos" />
		
	</label>
	<g:select name="groupInfos" from="${com.dbb.GroupInfo.list()}" multiple="multiple" optionKey="id" size="5" value="${shipmentInstance?.groupInfos*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: shipmentInstance, field: 'loadingDate', 'error')} required">
	<label for="loadingDate">
		<g:message code="shipment.loadingDate.label" default="Loading Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="loadingDate" precision="day"  value="${shipmentInstance?.loadingDate}"  />
</div>

